package com.itheima.mapper;

import com.itheima.pojo.MemberReport;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface MemberDao {


    List<MemberReport> getMemberCountByDate(@Param("dateList") List<String> dateList);

    @Select("select count(*) from t_member where regTime = #{date}")
    Integer getTodayNewMember(String date);

    Integer getNewMember(@Param("monthDate") List<String> monthDate);

    @Select("select count(*) from t_member")
    Integer getTotalMember();
}
